package cn.iocoder.yudao.module.member.controller.admin.userpointrecords.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户积分流水分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UserPointRecordsPageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "用户id", example = "8104")
    private Long userId;

    @Schema(description = "手机号", example = "131123456789")
    private String mobile;

    @Schema(description = "邀请码", example = "be3e07d5bc")
    private String inviteCode;

    @Schema(description = "操作类型：0 增加；1 扣减；", example = "1")
    private Integer opType;

    @Schema(description = "业务类型")
    private Integer bizType;

    @Schema(description = "业务id", example = "27086")
    private Long bizId;

    @Schema(description = "变动积分")
    private Integer points;

    @Schema(description = "变动后的积分")
    private Integer totalPoints;

    @Schema(description = "备注", example = "随便")
    private String remark;

}